'use strict';

function hybrid_operation_to_uneven(collection) {
  let arr1=new Array();
  for(let i=0;i<collection.length;i++){
    if(collection[i]%2==1){
      arr1.push(collection[i]);
    }
  }
  let arr2=arr1.map(function(item){
    return item*3+5;
  });
  let result=0;
  for(let i=0;i<arr2.length;i++){
    result=result+arr2[i];
  }
  return result;
}

module.exports = hybrid_operation_to_uneven;

